package cn.sylinx.horm.core.stat;

/**
 * sql统计对象
 * 
 * @author johnhan
 *
 */
public class SqlStatInfo {

    public static final String SQL_TYPE_BEFORE = "before";
    public static final String SQL_TYPE_AFTER = "after";

    // 唯一序列
    private String seq;

    private String datasoureName;

    private long time;

    private String nativeSql;

    public String getSeq() {
        return seq;
    }

    public SqlStatInfo setSeq(String seq) {
        this.seq = seq;
        return this;
    }

    public String getDatasoureName() {
        return datasoureName;
    }

    public SqlStatInfo setDatasoureName(String datasoureName) {
        this.datasoureName = datasoureName;
        return this;
    }

    public long getTime() {
        return time;
    }

    public SqlStatInfo setTime(long time) {
        this.time = time;
        return this;
    }

    public String getNativeSql() {
        return nativeSql;
    }

    public SqlStatInfo setNativeSql(String nativeSql) {
        this.nativeSql = nativeSql;
        return this;
    }

}
